const path = require("path")
const os = require('os');

const MINSIZEWIN = 'MINSIZEWIN';
const RENDERPROCESSCALL = 'RENDERPROCESSCALL';
const MAXSIZEWIN = 'MAXSIZEWIN';
const CLOSE = 'CLOSE';
const SHOWDIALOG = 'SHOWDIALOG';
const DOWNLOADFILE = 'DOWNLOADFILE';
const SAVELOCALFILE = 'SAVELOCALFILE';
const LOGINUSERID = 'LOGINUSERID';
const SET_VIDEO_INFO = 'SET_VIDEO_INFO';
const GET_VIDEO_INFO = 'GET_VIDEO_INFO';
const SELECT_FILES = 'SELECT_FILES';
const SELECT_FILES_CALLBACK = 'SELECT_FILES_CALLBACK';
const DOWNLOAD_PATH = path.resolve(os.homedir(), 'download/')
const OPEN_CALL_WINDOW = 'OPEN_CALL_WINDOW';
const CLOSE_CALL_WINDOW = 'CLOSE_CALL_WINDOW';
const CALL_WINDOW_CLOSE = 'CALL_WINDOW_CLOSE';
const CALL_WINDOW_CLOSE_REPLY = 'CALL_WINDOW_CLOSE_REPLY';
const GET_VIDEO_INFO_CALLBACK = 'GET_VIDEO_INFO_CALLBACK';
const SET_VIDEO_INFO_CALLBACK = 'SET_VIDEO_INFO_CALLBACK';
const CHECK_FILE_EXIST = 'CHECK_FILE_EXIST';
const GET_FILE_INFO_CALLBACK = 'GET_FILE_INFO_CALLBACK';
const DOWNLOADFILE_CALLBACK = 'DOWNLOADFILE_CALLBACK';
const END_CALL_WINDOW = 'END_CALL_WINDOW'
const SUPPORT_IMAGE_TYPE = ['png','jpeg', 'jpg', 'gif','webp'];
const SCREENCAPTURE = 'SCREENCAPTURE'
const SCREENSHOTMAC ='SCREENSHOTMAC'
const SCREENSHOTWINDOWS = 'SCREENSHOTWINDOWS'
const GETDEVICETOKEN = 'GETDEVICETOKEN'

const SDK_APP_ID = 'AFf75gEI7tm2QxVmYZUBGQ=='; // sdkappid 
const AES_KEY =Buffer.from("128bitslength*@#", "utf8");
const AES_IV = Buffer.from("A-16-Byte-String", "utf8");
module.exports = {
    MINSIZEWIN,AES_KEY,AES_IV,
    RENDERPROCESSCALL,
    MAXSIZEWIN,
    CLOSE,
    SHOWDIALOG,
    DOWNLOADFILE,SAVELOCALFILE,
    LOGINUSERID,
    GET_VIDEO_INFO,SET_VIDEO_INFO_CALLBACK,SET_VIDEO_INFO,
    SELECT_FILES,
    SELECT_FILES_CALLBACK,
    GET_FILE_INFO_CALLBACK,
    DOWNLOADFILE_CALLBACK,
    DOWNLOAD_PATH,
    OPEN_CALL_WINDOW,
    CALL_WINDOW_CLOSE,
    CALL_WINDOW_CLOSE_REPLY,
    GET_VIDEO_INFO_CALLBACK,
    CLOSE_CALL_WINDOW,
    CHECK_FILE_EXIST,
    SUPPORT_IMAGE_TYPE,
    END_CALL_WINDOW,
    SDK_APP_ID,
    SCREENCAPTURE,
    SCREENSHOTMAC,
    SCREENSHOTWINDOWS,
    GETDEVICETOKEN
}